package com.xinchao.dao;

import com.xinchao.model.DeviceAdvertisement;

/**
 * @author dxy
 * @date 2018/11/6 17:29
 */
public interface DeviceAdvertisementMapper {
	/**
	 * 保存终端
	 *
	 * @param deviceAdvertisement 终端广告
	 */
	void insertDeviceAdvertisement(DeviceAdvertisement deviceAdvertisement);

	/**
	 * 通过机器码修改终端广告
	 *
	 * @param deviceAdvertisement DeviceAdvertisement
	 */
	void updateDeviceAdvertisementByDeviceNumber(DeviceAdvertisement deviceAdvertisement);

	/**
	 * 通过机器码获取终端广告
	 * @param deviceNumber 机器码
	 * @return DeviceAdvertisement
	 */
	DeviceAdvertisement getDeviceAdvertisementByDeviceNumber(String deviceNumber);
}
